<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>[title]</title>
	<link rel="shortcut icon" href="__PUBLIC_CSS__/Public/images/favicon.ico">
	<link rel="stylesheet" href="__PUBLIC_CSS__/Public/Flat-UI-master/bootstrap/css/bootstrap.css">
	<link rel="stylesheet" href="__PUBLIC_CSS__/Public/Flat-UI-master/css/flat-ui.css">
	<link rel="stylesheet" href="__PUBLIC_CSS__/Public/style.css">	
	<script type="text/javascript" src="__PUBLIC_CSS__/Public/Flat-UI-master/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="__PUBLIC_CSS__/Public/Flat-UI-master/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__PUBLIC_CSS__/Public/init.js"></script>	
</head>
<body>
<div class="header">
	<php>
$cate = M('cate')->order('sort')->select();
$cate = \Util\Category::unlimitedForlayer($cate);
;
	</php>
	<!-- top begin -->
	<div class="htop hidden-xs">
		<div class="container">
			<div class="logo " data-toggle="tooltip" data-placement="right" data-original-title="没钱吃饭了,求点广告^_^">
				<a href="__APP__">
				<img src="__PUBLIC_CSS__/Public/images/logo.png" alt="安全者">
				</a>	
			</div>
		</div>
	</div>
	<!-- top end -->
	<!-- 头部导航开始 -->
	<header class="headroom navbar navbar-inverse navbar-fixed-top stuckMenu" role="banner navigation" style="position: relative; top: 0px;">
		<div class="container">
			<div class="navbar-header">
				<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand visible-xs" href="__APP__">安全者</a>
			</div>
			
			<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">	
				<ul class="nav navbar-nav navbar-left">           
	                <li><a href="__APP__">主页</a></li>
	           		<foreach name="cate" item="v">
	              		 <li class="dropdown">
	              		 	<a href="__APP__/c-{$v.id}" <if condition ="$v['child']"> class="dropdown-toggle" data-toggle="dropdown" </if>>{$v.name} <if condition ="$v['child']"><b class="caret"></b></if></a>
		                  <if condition ="$v['child']">
			                  <span class="dropdown-arrow"></span>
			                  <ul class="dropdown-menu">
			                  	<foreach name="v.child" item="value">
			                    	<li><a href="__APP__/c-{$value.id}">{$value.name}</a></li>
			                    </foreach>
			                  </ul>
		              	  </if>
		                </li>
	           		</foreach>
               </ul>	
			    <!-- search box begin -->
				<ul class="nav navbar-nav navbar-right">           
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-search"></span></a>
                  <span class="dropdown-arrow"></span>
                  <ul class="dropdown-menu">
                    <li>
					    <form method="get" action="#" class="navbar-form navbar-left" role="search"> 
						<div class="form-group">
							<input type="text" name="s" class="form-control" placeholder="Search" x-webkit-speech="">
						</div>
					    </form>	
                    </li>
                  </ul>
                </li>
               </ul>			    
			    <!-- search box end -->
		    </nav>
		</div>
	</header>
	<!-- 头部导航结束 -->
</div>
